home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 05.zip / BS1 part 5 / ANC_UTULITYS_16.adf / 3util.arc / utiltex < prev    next >
Text File  |  1988-09-21  |  3KB  |  52 lines

  1. ---------------------------------------
  2. 3]BATCHER - UNLOCK DIRECTORY - WORD COUNT
  3. 3]Three Tiny But Helpful Utilities
  4. 3]By WESLEY HOWE
  5. ---------------------------------------
  6.  
  7.      With an eye toward economy of bytes, I've written three small utilities
  8. you may be able to use. All three are only executable from the CLI.
  9.      
  10. 3]BATCHER
  11.      Batcher is a 216-byte Assembly program that allows batch files to be
  12. executed from the CLI without explicitly using the execute command. It
  13. operates by looking for the name by which it was executed, appending the
  14. suffix ".bat" to this name. It attempts to execute it, using the AmigaDOS
  15. execute function, passing any remaining parameters on the command-line tail
  16. to the batch file. The program "RUN" needs to be in the C directory for this
  17. to work.
  18.      To use it, rename the assembled program from "Batcher" to the name of
  19. the DOS batch file you want to execute, and rename the batch file to the
  20. same name with ".bat" on the end. For example, to execute a 'C' compilation
  21. and link, make a batch file to do this named "cc.bat". Copy Batcher to cc.
  22. Then you can execute the compilation by typing "cc <program name>" from the
  23. CLI.
  24.  
  25. 3]UD -- UNLOCK DIRECTORY
  26.      UD is a 108-byte Assembly-language program to unlock the current
  27. Directory and set it to the root of the filing system (the boot disk). UD
  28. was written to overcome the problem where the CD command attaches to a disk,
  29. rather than a device.
  30.      It is most useful on single-drive systems, where swapping disks can
  31. become a problem. For example, if you use CD on a single drive system even
  32. once, you must use it each time you change the disk in DF0: or the system
  33. will keep asking for the old disk by name.
  34.      On two-drive systems, it is often more convenient to move the bootdisk
  35. to DF1: and change disks in DF0:. If you use CD to inspect a directory, then
  36. use CD DF0: to get out, you will need to use CD DF0: each time you want to
  37. change the disk in DF0:. I find that cumbersome and inconvenient.
  38.      Enter UD. After using the CD command, UD will set the current directory
  39. to the disk drive DF0:, not the volume in DF0:. This is the way the system
  40. defines the current directory after a reboot prior to ever using the CD
  41. command.
  42.  
  43. WC -- WORD COUNT
  44.      WC is a 864-byte assembly-language utility to count the characters,
  45. lines and words in a text file. To use it, simply type WC followed by a
  46. filename from the CLI.
  47.      WC defines a "word" as a sequence of characters bounded by either
  48. spaces, tab or newlines (linefeeds). It considers lines to be sequences of
  49. characters terminated with newlines.
  50.  
  51. 4]END OF TEXT
  52.